package net.oschina.archx.rmi.annotation;

import java.lang.annotation.*;

/**
 * RemoteService
 *
 * @author Archx[archx@foxmail.com]
 * @date 2016/2/24 0024
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RemoteService {

    /**
     * 服务名
     *
     * @return
     */
    String serviceName();

    /**
     * 接口类
     *
     * @return
     */
    Class<?> serviceInterface();

    /**
     * 注册端口
     *
     * @return
     */
    int registryPort() default 8080;
}
